import { RouteRecordRaw } from 'vue-router';

export const workflowRoutes: RouteRecordRaw[] = [
    {
        path: '/workflow',
        component: () => import('@/layouts/MainLayout.vue'),
        meta: { requiresAuth: true },
        children: [
            {
                path: '',
                name: 'workflow-list',
                component: () => import('@/views/workflow/WorkflowList.vue'),
                meta: { title: '工作流列表' }
            },
            {
                path: 'create',
                name: 'workflow-create',
                component: () => import('@/views/workflow/WorkflowEdit.vue'),
                meta: { title: '创建工作流' }
            },
            {
                path: 'edit/:id',
                name: 'workflow-edit',
                component: () => import('@/views/workflow/WorkflowEdit.vue'),
                meta: { title: '编辑工作流' }
            },
            {
                path: 'preview/:id',
                name: 'workflow-preview',
                component: () => import('@/views/workflow/WorkflowPreview.vue'),
                meta: { title: '预览工作流' }
            }
        ]
    }
]; 